using System;
using OpenTK.Graphics.OpenGL;
namespace Foundry.Graphics
{
	public static class Extensions
	{
		public static void AssertGL()
		{
			var err = GL.GetError();
			if(err != ErrorCode.NoError)
				throw new GraphicsException(err.ToString());
		}
		
	}
	
	public class GraphicsException : Exception
	{
		public GraphicsException(string message)
			: base(message)
		{
			
		}
	}
}

